<html>
<head>
<title> rest password </title>
<script type="text/javascript">
function validate()
{
	var limit=5;
	var val=document.getElementById("newpassword").value;
	if(val.length<5)
	{
		alert("Password length can't be less than 5 characters and doesn't exceed 30");
	}
	else
	{
	
	    document.getElementById('submit').disabled=false;
	}
	
	
}
</script>
</head>

<body>

<form action = "/passwordreset/ " method = "POST">
{% csrf_token %}

<p>Email: <input type="text" name=email size="10">
<p>old Password: <input type="text" name=oldpassword  size="10"><br/>
<p>New Password: <input type="text" name=newpassword id=newpassword size="10">
<p>Confirm password: <input type="text" name=confirmpassword id=confirmpasword size="10">
<input type="button" value="Validate" onclick="validate();" />

<br>
<button type="submit" id="submit" value="submit" disabled=true> Done </button>
</br>
</a>
</form>
</p>





</body>
</html>